#{extends 'frame.html' /}

#{set title:'审核分享任务' /}



#{set 'moreStyles'}

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/widget.css'}" />

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/jquery.pagination.css'}" />

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/task/refound.css'}" />

#{/set}



<div class="contentCard">

	<div class="contentTitle">

		<span class="iconfont">&#xe605;</span>

		审核分享任务

		&nbsp;&nbsp;&nbsp;&nbsp;

		<span class="grey">(建议：使用父任务ID进行筛选，按任务进行退款，不容易出错~~)</span>

		<a class="floatRight" href="/seller/wdTasks" style="color:#4083a9;">

			<span class="iconfont">&#x3433;</span>

			返回“我的任微代任务”列表

		</a>

	</div>

	<div class="contentBody">

	<form id="queryForm">

		<div class="searchPanel">

			<span class="floatLeft">父任务ID</span>

			<input class="floatLeft mr-8" type="text" name="taskId" id="txtTaskId">

			<a class="stdColorButton low-button floatLeft" id="queryTask" href="javascript:;">查询</a>

		</div>

	</form>

		<div class="taskTypeSwitchWrapper">

			<a class="taskTab focus" href="javascript:;" id="waitCheck" status="WAIT_Check">待审核的任务</a>

		</div>

		<form id="refundForm">

		<div class="taskWrapper" style="overflow: hidden;" id="taskContainer" sellerId="${user?.id}">

		</div>

		</form>

		<!--这里是分页区域-->

		<div class="taskPagination"></div>

		<div class="pagin-btm clearFix">

			<div class="pagination"></div>

		</div>

		<div class="popWrapper" style="display: none;" id="tr_loading_mask">

			<div class="maskLayer"></div>

			<img class="tr_juhua" src="@{'/public/images/pre_loading.gif'}" />		

		</div>

	</div>

</div>

<textarea id="taskCellTemp" class="muban">

{{#results}}

	<div class="taskCell">

		<div class="title">

			<span class="">

				任务编号：

				<span>{{taskIdStr}}-{{id}}</span>
				<!-- 
				<a href="/buyer/task/{{id}}" target="_blank" class="btnViewTask blue"  tid="{{id}}">[详情]</a>
				 -->
			</span>

			<span class="floatRight">
				完成时间：
				<span>{{modifyTimeStr}}&nbsp;</span>
			</span>
		</div>
		<div class="body">
			<table class="normTable">
				<thead>
					<tr>
						<td class="item-list"></td>

						<td class="nick"></td>

						<td class="orderid"></td>

						<td class="buyer"></td>

						<td class="account"></td>

						<td class="price"></td>

					</tr>

				</thead>

				<tbody>

					<tr>

						<td class="item-list">

							<div class="item-box">

								<div class="pic">

									<img src="{{itemPic}}" />

								</div>

								<p class="title">{{itemTitle}}</p>

							</div>
						</td>
						<td></td>
						<td>
							分享佣金：2元
						</td>
						<td>
							<div>收藏加购截图</div>
							<div>
								<a href="{{cacPicUrl}}" target="_blank" class="pic">
									<img src="{{cacPicUrl}}" width="80" height="80"/>
								</a>
							</div>
						</td>
						<td>
							<div>分享截图</div>
							<div>
								<a href="{{picUrl}}" target="_blank" class="pic">
									<img src="{{picUrl}}" width="80" height="80"/>
								</a>
							</div>
						</td>
						<td class="opera">
							<a class="J_confirmRefund btnConfirmDeli stdColorButton mt20" href="javascript:;" onclick="confirmTask('{{taskIdStr}}', {{id}}, false)">确认返佣</a>
							<a class="J_confirmRefund btnConfirmDeli stdColorButton mt20" href="javascript:;" style="background-color: #ff7043" onclick="confirmTask('{{taskIdStr}}', {{id}}, true)">驳回</a>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>

	{{/results}}

</textarea>

#{set 'moreScripts'}

<script src="@{'/public/javascripts/jquery.pagination.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/mustache.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/jquery.number.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/task/check_share.js'}" type="text/javascript"></script>

<script type="text/javascript">App.module = 'myWdTask';</script>

#{/set}